@notenoughupdates/discord-akairo
Advanced tools
Comparing version
{ | ||
"name": "@notenoughupdates/discord-akairo", | ||
"version": "9.0.10-dev.1642740434.20b44c6", | ||
"version": "9.0.10-dev.1642804356.e93bed8", | ||
"description": "A highly customizable bot framework for Discord.js.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/src/index.js", |
import type { APIInteractionGuildMember, APIMessage } from "discord-api-types/v9"; | ||
import { Base, ChatInputCommandInteraction, ContextMenuCommandInteraction, Guild, GuildMember, InteractionReplyOptions, Message, MessagePayload, Snowflake, TextBasedChannel, User } from "discord.js"; | ||
import { Base, ChatInputCommandInteraction, ContextMenuCommandInteraction, Guild, GuildMember, GuildTextBasedChannel, InteractionReplyOptions, Message, MessagePayload, Snowflake, TextBasedChannel, User } from "discord.js"; | ||
import type AkairoClient from "../struct/AkairoClient.js"; | ||
@@ -84,4 +84,4 @@ import type CommandUtil from "../struct/commands/CommandUtil.js"; | ||
inGuild(): this is this & { | ||
guild: Guild; | ||
member: GuildMember; | ||
get guild(): Guild; | ||
get channel(): GuildTextBasedChannel; | ||
}; | ||
@@ -88,0 +88,0 @@ /** |
{ | ||
"name": "@notenoughupdates/discord-akairo", | ||
"version": "9.0.10-dev.1642740434.20b44c6", | ||
"version": "9.0.10-dev.1642804356.e93bed8", | ||
"description": "A highly customizable bot framework for Discord.js.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/src/index.js", |
@@ -9,2 +9,3 @@ import type { APIInteractionGuildMember, APIMessage } from "discord-api-types/v9"; | ||
GuildMember, | ||
GuildTextBasedChannel, | ||
InteractionReplyOptions, | ||
@@ -148,3 +149,3 @@ Message, | ||
*/ | ||
public inGuild(): this is this & { guild: Guild; member: GuildMember } { | ||
public inGuild(): this is this & { get guild(): Guild; get channel(): GuildTextBasedChannel } { | ||
return Boolean(this.guildId && this.member); | ||
@@ -151,0 +152,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
912743
0.01%16399
0.01%