aboutsummaryrefslogtreecommitdiff
path: root/discord/widget.py
diff options
context:
space:
mode:
Diffstat (limited to 'discord/widget.py')
-rw-r--r--discord/widget.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/discord/widget.py b/discord/widget.py
index 252cebe2..7f3ed4c8 100644
--- a/discord/widget.py
+++ b/discord/widget.py
@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
"""
The MIT License (MIT)
@@ -77,7 +75,7 @@ class WidgetChannel:
@property
def mention(self):
""":class:`str`: The string that allows you to mention the channel."""
- return '<#%s>' % self.id
+ return f'<#{self.id}>'
@property
def created_at(self):
@@ -236,7 +234,7 @@ class Widget:
@property
def json_url(self):
""":class:`str`: The JSON URL of the widget."""
- return "https://discord.com/api/guilds/{0.id}/widget.json".format(self)
+ return f"https://discord.com/api/guilds/{self.id}/widget.json"
@property
def invite_url(self):