Object.freeze({
INVITE: (code: string, options: RequestTypes.RouteInvite = {}) => {
const query = new URLSearchParams();
if (options.username) {
query.set('username', options.username);
}
return `${Routes.INVITE(code)}?${query}`;
},
WIDGET: (guildId: string, options: RequestTypes.RouteWidget = {}) => {
const query = new URLSearchParams({id: guildId});
if (options.theme) {
query.append('theme', options.theme);
}
if (options.username) {
query.append('username', options.username);
}
return `${Routes.WIDGET}?${query}`;
},
})