fuwa.js / Exports / Request / Request
Request.Request
• new Request(msg
, cache
)
Name | Type |
---|---|
msg |
Message |
cache |
Cache |
• args: string
[]
An array of the arguments passed into your command
• Readonly
author: User
• Protected
cache: Cache
• channel: Channel
• Readonly
channel_id: any
• guild: Guild
• Readonly
guild_id: any
• Readonly
mentions: User
[]
• Readonly
message: Message
• Readonly
rawData: Message
deprecated
This will be removed soon, please add feature requests if you still require this in your applications.
• Readonly
reactions: Reaction
[]
▸ getChannel(): Promise
<Channel
>
Promise
<Channel
>
▸ getGuild(memberLimit?
): Promise
<Guild
>
To use this function you must have the server list intent enabled, otherwise you will get an error Go to https://discord.com/developers/applications/{YOUR_BOT_ID}/bot and enable server members intents to use.
Name | Type | Default value |
---|---|---|
memberLimit |
number |
100 |
Promise
<Guild
>