Skip to content

Commit

Permalink
Allow basic user application usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus-Rost committed Mar 19, 2024
1 parent 0282a67 commit 79a6313
Show file tree
Hide file tree
Showing 27 changed files with 142 additions and 373 deletions.
2 changes: 1 addition & 1 deletion cmds/wiki/general.js
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ export default function mw_check_wiki(lang, msg, title, wiki, cmd, reaction, spo
logging(wiki, msg.guildId, 'general');
var pagelink = wiki.toLink(querypage.title, querystring, ( fragment || ( body.query.redirects && body.query.redirects[0].tofragment ) || '' ));
var text = '';
var embed = new EmbedBuilder().setAuthor( {name: body.query.general.sitename} ).setTitle( escapeFormatting(querypage.title) ).setURL( pagelink );
var embed = new EmbedBuilder().setAuthor( {name: body.query.general.sitename} ).setTitle( escapeFormatting(body.query.converted?.[0]?.from || querypage.title) ).setURL( pagelink );
if ( querypage.pageprops?.displaytitle ) {
var displaytitle = htmlToDiscord( querypage.pageprops.displaytitle );
if ( displaytitle.length > 250 ) displaytitle = displaytitle.substring(0, 250) + '\u2026';
Expand Down
313 changes: 0 additions & 313 deletions interactions/commands.json

This file was deleted.

7 changes: 4 additions & 3 deletions interactions/commands/admin.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"id": "",
"application_id": "",
"type": 1,
"integration_types": [0],
"contexts": [0, 1],
"default_member_permissions": "0",
"name": "admin",
"name_localizations": {},
"description": "Post a message with inline wiki links.",
"description_localizations": {},
"default_permission": false,
"default_member_permissions": "0",
"dm_permission": false,
"options": [
{
"type": 2,
Expand Down
7 changes: 4 additions & 3 deletions interactions/commands/diff.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"id": "",
"application_id": "",
"type": 1,
"integration_types": [0, 1],
"contexts": [0, 1, 2],
"default_member_permissions": "1024",
"name": "diff",
"name_localizations": {
"en-GB": "diff",
Expand Down Expand Up @@ -37,9 +41,6 @@
"fr": "Afficher les différences d'édition d'un wiki.",
"vi": "Hiển thị khác biệt giữa hai lần sửa đổi wiki."
},
"default_permission": true,
"default_member_permissions": "68608",
"dm_permission": true,
"options": [
{
"type": 1,
Expand Down
Loading

0 comments on commit 79a6313

Please sign in to comment.