Fix QuickMention not working in DMs (#2028)
Co-authored-by: V <vendicated@riseup.net>
This commit is contained in:
parent
9a89f7b3b2
commit
613b2dc5f6
|
@ -31,7 +31,7 @@ export default definePlugin({
|
|||
start() {
|
||||
addButton("QuickMention", msg => {
|
||||
const channel = ChannelStore.getChannel(msg.channel_id);
|
||||
if (!PermissionStore.can(PermissionsBits.SEND_MESSAGES, channel)) return null;
|
||||
if (channel.guild_id && !PermissionStore.can(PermissionsBits.SEND_MESSAGES, channel)) return null;
|
||||
|
||||
return {
|
||||
label: "Quick Mention",
|
||||
|
|
Loading…
Reference in a new issue