diff options
Diffstat (limited to 'src/lib/extensions/discord.js')
-rw-r--r-- | src/lib/extensions/discord.js/BushGuildMember.ts | 12 | ||||
-rw-r--r-- | src/lib/extensions/discord.js/index.ts | 35 |
2 files changed, 46 insertions, 1 deletions
diff --git a/src/lib/extensions/discord.js/BushGuildMember.ts b/src/lib/extensions/discord.js/BushGuildMember.ts index 2fefcdd..7a63012 100644 --- a/src/lib/extensions/discord.js/BushGuildMember.ts +++ b/src/lib/extensions/discord.js/BushGuildMember.ts @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ -import { GuildMember } from 'discord.js'; +import { GuildMember, RoleResolvable } from 'discord.js'; import { ModLogType } from '../../models'; import { BushClient, BushUserResolvable } from '../discord-akairo/BushClient'; import { BushGuild } from './BushGuild'; @@ -14,10 +14,16 @@ interface BushTimedPunishmentOptions extends BushPunishmentOptions { duration?: number; } +interface BushPunishmentRoleOptions extends BushTimedPunishmentOptions { + role: RoleResolvable; +} + type PunishmentResponse = 'success'; type WarnResponse = PunishmentResponse; +type PunishmentRoleResponse = PunishmentResponse; + type MuteResponse = | PunishmentResponse | 'missing permissions' @@ -52,6 +58,10 @@ export class BushGuildMember extends GuildMember { throw 'not implemented'; } + public punishRole(options: BushPunishmentRoleOptions): Promise<PunishmentRoleResponse> { + throw 'not implemented'; + } + public async mute(options: BushTimedPunishmentOptions): Promise<MuteResponse> { //checks if (!this.guild.me.permissions.has('MANAGE_ROLES')) return 'missing permissions'; diff --git a/src/lib/extensions/discord.js/index.ts b/src/lib/extensions/discord.js/index.ts new file mode 100644 index 0000000..766500d --- /dev/null +++ b/src/lib/extensions/discord.js/index.ts @@ -0,0 +1,35 @@ +export * from './BushActivity'; +export * from './BushApplicationCommand'; +export * from './BushApplicationCommandManager'; +export * from './BushApplicationCommandPermissionsManager'; +export * from './BushButtonInteraction'; +export * from './BushCategoryChannel'; +export * from './BushCommandInteraction'; +export * from './BushDMChannel'; +export * from './BushEmoji'; +export * from './BushGuild'; +export * from './BushGuildApplicationCommandManager'; +export * from './BushGuildChannel'; +export * from './BushGuildEmoji'; +export * from './BushGuildEmojiRoleManager'; +export * from './BushGuildMember'; +// export * from './BushGuildMemberManager'; +export * from './BushMessage'; +export * from './BushMessageManager'; +export * from './BushMessageReaction'; +export * from './BushNewsChannel'; +export * from './BushPresence'; +export * from './BushReactionEmoji'; +export * from './BushRole'; +export * from './BushSelectMenuInteraction'; +export * from './BushStageChannel'; +export * from './BushStageInstance'; +export * from './BushStoreChannel'; +export * from './BushTextChannel'; +export * from './BushThreadChannel'; +export * from './BushThreadManager'; +export * from './BushThreadMember'; +export * from './BushThreadMemberManager'; +export * from './BushUser'; +export * from './BushVoiceChannel'; +export * from './BushVoiceState'; |