Skip to content

Commit

Permalink
Fix Issue JsSucks#303
Browse files Browse the repository at this point in the history
  • Loading branch information
Mega-Mewthree authored Mar 11, 2019
1 parent b83cdb1 commit c8dba35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/builtin/EmoteModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ export default new class EmoteModule extends BuiltinModule {
if (!content) return orig(...args);

const emoteAsImage = Settings.getSetting('emotes', 'default', 'emoteasimage').value &&
(DiscordApi.currentChannel.type === 'DM' || DiscordApi.currentChannel.checkPermissions(DiscordApi.modules.DiscordPermissions.ATTACH_FILES));
(DiscordApi.currentChannel.type === 'DM' || DiscordApi.currentChannel.type === 'GROUP_DM' || DiscordApi.currentChannel.checkPermissions(DiscordApi.modules.DiscordPermissions.ATTACH_FILES));

if (!emoteAsImage || content.split(' ').length > 1) {
args[1].content = args[1].content.split(' ').map(word => {
Expand Down

0 comments on commit c8dba35

Please sign in to comment.