diff --git a/SendAudio.plugin.js b/SendAudio.plugin.js index e056bf9..ef3ed27 100644 --- a/SendAudio.plugin.js +++ b/SendAudio.plugin.js @@ -164,7 +164,7 @@ module.exports = (() => { date = new Date(date.getTime() - (date.getTimezoneOffset() * 60000)).toISOString(); - return Upload.upload(channel, new File([blob], randomKey(3) + '-' + date.substr(0, 10) + '-' + date.substr(11, 8).replace(/:/g, '-') + '.mp3'), {content: '', tts: false}); + return Upload.upload(channel, new File([blob], randomKey(3) + '-' + date.substr(0, 10) + '-' + date.substr(11, 8).replace(/:/g, '-') + '.ogg'), {content: '', tts: false}); }; const DiscordPlayer = (() => { diff --git a/src/index.js b/src/index.js index 94b7aa2..001f712 100644 --- a/src/index.js +++ b/src/index.js @@ -76,7 +76,7 @@ module.exports = (Plugin, Api) => { date = new Date(date.getTime() - (date.getTimezoneOffset() * 60000)).toISOString(); - return Upload.upload(channel, new File([blob], randomKey(3) + '-' + date.substr(0, 10) + '-' + date.substr(11, 8).replace(/:/g, '-') + '.mp3'), {content: '', tts: false}); + return Upload.upload(channel, new File([blob], randomKey(3) + '-' + date.substr(0, 10) + '-' + date.substr(11, 8).replace(/:/g, '-') + '.ogg'), {content: '', tts: false}); }; const DiscordPlayer = (() => {