Commit 9cb4bb3
committed
Use guild_id instead of inspecting guild
Previously, this line caused guild-specific commands to not
execute in guilds with the applications.commands scope. In this case,
SlashContext.guild is None and SlashContext.guild_id has the guild id.
This appears to be a holdover from pre-1.0.9 when SlashContext.guild
represented either a guild or a guild id.1 parent 36ce1f6 commit 9cb4bb3
1 file changed
+2
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
722 | 722 | | |
723 | 723 | | |
724 | 724 | | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
| 725 | + | |
| 726 | + | |
730 | 727 | | |
731 | 728 | | |
732 | 729 | | |
| |||
0 commit comments