Interaction#fetchChannel #6272
Closed
tguichaoua
started this conversation in
Ideas
Replies: 1 comment
-
Just fetch either way really. const guild = await interaction.client.guilds.fetch(interaction.guildId);
const channel = await interaction.client.channels.fetch(interaction.channelId);
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Getting the channel from an
Interaction
require a pretty long boilerplate code (see below). I propose to add some shorcut method toInteraction
.Maybe the name
fetch
is not appropriate since it doesn't fetch in all case.I know the policy is to avoid trivial shorcut method, but this one could help improve code readability.
Beta Was this translation helpful? Give feedback.
All reactions