mirror of https://github.com/stijndcl/didier
Compare commits
No commits in common. "ce7f2eafd88a702e31de8d653204c29efb235d3b" and "ad0076537d3082161fda7a003d136d65a1ed330c" have entirely different histories.
ce7f2eafd8
...
ad0076537d
|
|
@ -85,17 +85,11 @@ class Owner(commands.Cog):
|
||||||
if flags.copy_globals:
|
if flags.copy_globals:
|
||||||
self.client.tree.copy_global_to(guild=guild)
|
self.client.tree.copy_global_to(guild=guild)
|
||||||
|
|
||||||
synced_commands = await self.client.tree.sync(guild=guild)
|
await self.client.tree.sync(guild=guild)
|
||||||
else:
|
else:
|
||||||
synced_commands = await self.client.tree.sync()
|
await self.client.tree.sync()
|
||||||
|
|
||||||
command_names = "\n".join([cmd.name for cmd in synced_commands])
|
|
||||||
|
|
||||||
await ctx.message.add_reaction("🔄")
|
await ctx.message.add_reaction("🔄")
|
||||||
await ctx.reply(
|
|
||||||
f"Successfully synced {len(synced_commands)} application commands: ```\n{command_names}\n```",
|
|
||||||
mention_author=False,
|
|
||||||
)
|
|
||||||
|
|
||||||
@commands.group(name="Add", aliases=["Create"], case_insensitive=True, invoke_without_command=False)
|
@commands.group(name="Add", aliases=["Create"], case_insensitive=True, invoke_without_command=False)
|
||||||
async def add_msg(self, ctx: commands.Context):
|
async def add_msg(self, ctx: commands.Context):
|
||||||
|
|
|
||||||
|
|
@ -382,12 +382,6 @@ class Didier(commands.Bot):
|
||||||
if not should_snipe(before):
|
if not should_snipe(before):
|
||||||
return
|
return
|
||||||
|
|
||||||
# If the edited message is currently present in the snipe cache,
|
|
||||||
# don't update the <before>, but instead change the <after>
|
|
||||||
existing = self.sniped.get(before.channel.id, None)
|
|
||||||
if existing is not None and existing[0].id == before.id:
|
|
||||||
before = existing[0]
|
|
||||||
|
|
||||||
self.sniped[before.channel.id] = (
|
self.sniped[before.channel.id] = (
|
||||||
before,
|
before,
|
||||||
after,
|
after,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue