Commit 36ce1f6
committed
Use channel_id instead of channel to get id
Previously, this line caused a crash when sending responses in a guild
that uses the applications.commands scope. In this case,
SlashContext.channel is None and SlashContext.channel_id has the
channel id.
This appears to be a holdover from pre-1.0.9 when SlashContext.channel
represented either a channel or a channel id.1 parent 6955da8 commit 36ce1f6
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
| 187 | + | |
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| |||
0 commit comments