Commit a1255e8
authored
Add method for obtaining the guild id of a
Since `Channel` is non-exhaustive, then it's not easily possible for users to
match against both the `Guild` and `GuildThread` variants to extract the id of
the guild which contains said channel. This helper method allows this use-case.Channel (#3390)1 parent e6b1758 commit a1255e8
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
192 | 201 | | |
193 | 202 | | |
194 | 203 | | |
| |||
0 commit comments