mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-02 21:16:09 +00:00
feat: Added missing url getters (#112)
This commit is contained in:
parent
c916e9cb94
commit
dde0bffc57
@ -676,6 +676,11 @@ export class GuildChannel extends BaseChannel implements Model {
|
|||||||
async setPermissions(overwrites: PermissionsOverwrites[]): Promise<Channel> {
|
async setPermissions(overwrites: PermissionsOverwrites[]): Promise<Channel> {
|
||||||
return this.edit({ permissionOverwrites: overwrites } as EditGuildChannelOptions);
|
return this.edit({ permissionOverwrites: overwrites } as EditGuildChannelOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** gets the url of the channel that points to the channel */
|
||||||
|
get url(): string {
|
||||||
|
return `https://discord.com/channels/${this.guildId}/${this.id}`;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** BaseVoiceChannel */
|
/** BaseVoiceChannel */
|
||||||
|
@ -133,6 +133,11 @@ export abstract class BaseGuild implements Model {
|
|||||||
return this.features.includes(GuildFeatures.Partnered);
|
return this.features.includes(GuildFeatures.Partnered);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** gets the url of the guild that points to the guild */
|
||||||
|
get url(): string {
|
||||||
|
return `https://discord.com/channels/${this.id}`;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If the guild is verified.
|
* If the guild is verified.
|
||||||
* @link https://discord.com/developers/docs/resources/guild#guild-object-guild-features
|
* @link https://discord.com/developers/docs/resources/guild#guild-object-guild-features
|
||||||
|
@ -16,7 +16,7 @@ import type { Component } from './components';
|
|||||||
import type { MessageInteraction } from './interactions';
|
import type { MessageInteraction } from './interactions';
|
||||||
import type { StickerItem } from './sticker';
|
import type { StickerItem } from './sticker';
|
||||||
import type { Embed } from './embed';
|
import type { Embed } from './embed';
|
||||||
import { NewEmbed } from './embed';
|
import { NewEmbed, NewEmbedR } from './embed';
|
||||||
import { MessageFlags } from '../utils/util';
|
import { MessageFlags } from '../utils/util';
|
||||||
import { Snowflake } from '../snowflakes';
|
import { Snowflake } from '../snowflakes';
|
||||||
import { ChannelFactory, ThreadChannel } from './channels';
|
import { ChannelFactory, ThreadChannel } from './channels';
|
||||||
@ -27,7 +27,6 @@ import { ComponentFactory } from './components';
|
|||||||
import { MessageReaction } from './message-reaction';
|
import { MessageReaction } from './message-reaction';
|
||||||
import { Application, NewTeam } from './application';
|
import { Application, NewTeam } from './application';
|
||||||
import { InteractionFactory } from './interactions';
|
import { InteractionFactory } from './interactions';
|
||||||
import { NewEmbedR } from './embed';
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
CHANNEL_PIN,
|
CHANNEL_PIN,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user