aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/valentines
diff options
context:
space:
mode:
authorGravatar vcokltfre <[email protected]>2021-04-20 17:01:02 +0100
committerGravatar vcokltfre <[email protected]>2021-04-20 17:01:02 +0100
commit8662541fc08037558f68e15dcc3fd72ef491dced (patch)
tree13627283ca45d05c6fa0bb2362e49b063f5a7479 /bot/exts/valentines
parentchore(evergreen): remove unneeded cog constructors (diff)
chore: ctx.channel.send -> ctx.send
Diffstat (limited to 'bot/exts/valentines')
-rw-r--r--bot/exts/valentines/myvalenstate.py2
-rw-r--r--bot/exts/valentines/whoisvalentine.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/valentines/myvalenstate.py b/bot/exts/valentines/myvalenstate.py
index 01801847..041af7af 100644
--- a/bot/exts/valentines/myvalenstate.py
+++ b/bot/exts/valentines/myvalenstate.py
@@ -78,7 +78,7 @@ class MyValenstate(commands.Cog):
)
embed.add_field(name=embed_title, value=embed_text)
embed.set_image(url=STATES[valenstate]["flag"])
- await ctx.channel.send(embed=embed)
+ await ctx.send(embed=embed)
def setup(bot: commands.Bot) -> None:
diff --git a/bot/exts/valentines/whoisvalentine.py b/bot/exts/valentines/whoisvalentine.py
index 0ff9186c..ab6b1ca1 100644
--- a/bot/exts/valentines/whoisvalentine.py
+++ b/bot/exts/valentines/whoisvalentine.py
@@ -33,7 +33,7 @@ class ValentineFacts(commands.Cog):
'facial_reconstruction.jpg/1024px-Saint_Valentine_-_facial_reconstruction.jpg'
)
- await ctx.channel.send(embed=embed)
+ await ctx.send(embed=embed)
@commands.command()
async def valentine_fact(self, ctx: commands.Context) -> None:
@@ -44,7 +44,7 @@ class ValentineFacts(commands.Cog):
color=Colours.pink
)
- await ctx.channel.send(embed=embed)
+ await ctx.send(embed=embed)
def setup(bot: commands.Bot) -> None: