Skip to content

Commit 21637a8

Browse files
committed
Edit messages properly
1 parent 00a5cbd commit 21637a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cogs/plugins.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,13 +213,13 @@ async def plugin_add(self, ctx, *, plugin_name: str):
213213
'*Please note: any plugin that you install is of your OWN RISK*',
214214
color=self.bot.main_color
215215
)
216-
await self.bot.edit_message(message, embed=em)
216+
await message.edit(embed=em)
217217
else:
218218
em = discord.Embed(
219219
description='Invalid plugin name format: use username/repo/plugin.',
220220
color=self.bot.main_color
221221
)
222-
await self.bot.edit_message(message, embed=em)
222+
await message.edit(embed=em)
223223

224224
@plugin.command(name='remove', aliases=['del', 'delete', 'rm'])
225225
@checks.has_permissions(PermissionLevel.OWNER)
@@ -259,7 +259,7 @@ def onerror(func, path, exc_info): # pylint: disable=W0613
259259
await self.bot.config.update()
260260

261261
em = discord.Embed(
262-
description='The plugin is uninstalled and all it\'s data is erased.',
262+
description='The plugin is uninstalled and all its data is erased.',
263263
color=self.bot.main_color
264264
)
265265
await ctx.send(embed=em)

0 commit comments

Comments
 (0)