From 12e336b80eb6d990cc38623aa7447af045d15609 Mon Sep 17 00:00:00 2001 From: iDutchy <42503862+iDutchy@users.noreply.github.com> Date: Sat, 29 Aug 2020 03:50:45 +0200 Subject: [PATCH] Update discordpy.js The old snippet used very outdated code for discord.py, this change will update it to use the latest version of discord.py --- src/snippets/discordpy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/snippets/discordpy.js b/src/snippets/discordpy.js index fbc4cc1..64b1382 100644 --- a/src/snippets/discordpy.js +++ b/src/snippets/discordpy.js @@ -94,7 +94,7 @@ export default { content: data.content ? JSON.stringify(data.content) : null, embed: data.embed ? 'embed' : null }; - result.push(`await bot.say(${pythonKwargs(args)})`); + result.push(`await ctx.send(${pythonKwargs(args)})`); } return result.join('\n');